<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<s:actionerror/>
<s:actionmessage/>
<s:fielderror />

<h1>使用者管理</h1>
<p><b>登入代码：</b>${user.username}</p>
<p><b>姓名：</b>${user.nameNative}</p>
<p><b>电子邮件：</b>${user.email}</p>
<p><b>电话：</b>${user.phone}</p>
<p><b>手机：</b>${user.mobile}</p>
<p><b>会员状态：</b>${userStatus.options[user.status].name}</p>
<p><b>目前角色：</b>
<c:forEach items="${user.roles}" var="role" varStatus="status">
	<c:if test="${status.index!=0}">,</c:if>
	<c:out value="${role.description}"/> 
	<c:if test="${role.type=='MANAGER'}"> 部门管理</c:if>
	<c:if test="${role.type=='GROUP'}"> 部门</c:if>
	<c:if test="${role.type=='CATEGORY'}"> 資料維護</c:if>
	<c:if test="${role.type=='LINEPM'}"> 館線主管</c:if>
</c:forEach>
</p>
<div class="f-link">
	<a href="search.do">回查询页</a>
	<a href="edit.do">修改</a>
	<a href="resetPasswd.do">重设密码</a>
	<a href="delete.do">删除</a>
</div>
